<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="app">
        <h1>数组一堆</h1>
        <ul>
            <li v-for="item, index in arr"> item是{{item}} ,index arr 是{{index}}</li>
        </ul>

        <h1>遍历对象</h1>
        <ul>
            <li v-for="value, key, index in obj">
                对象的value 是{{value}},
                对象的key是 {{key}},
                对象的index 是{{index}},
            </li>
        </ul>
    </div>
    <script>
        const app = Vue.createApp
        ({
            data()
            {
                return{
                    arr:[4,3,2,1,0],
                    obj:{
                        a:1,
                        b:1,
                        c:1,
                        d:1,

                    }
                }
            },
            methods: 
            {
               
            }
        })
        app.mount("#app")
    </script>
    
</body>
</html>